<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>书籍管理-列表</title>
<jsp:include page="../layout/_include.jsp" />

</head>
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background and left menu-->
  <!-- left_menu -->
  <jsp:include page="left_menu.jsp" />
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- right head -->
    <jsp:include page="../layout/right_head.jsp" />
	<!-- End .clear -->
    <div class="clear"></div>
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>书籍列表</h3><a href="${ctx }/book_add.do" class="add_span">&gt;&nbsp;添加</a>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
        	<div class="search_form">
        	<form action="${ctx}/book_search.do" method="post">
        		书籍名称：<input type="text" name="keyword" />
        		<input type="submit" class="button" value="查询">
        	</form></div>
          <table>
            <thead>
              <tr>
                <th width="10%">
                  <input class="check-all" type="checkbox" />
                </th>
                <th width="10%">id</th>
                <th>书籍分类</th>
                <th width="20%">书籍名称</th>
                <th width="20%">作者</th>
                <th width="10%">价格</th>
                <th width="10%">操作</th>
              </tr>
            </thead>
            <tbody>
            
            <c:forEach items="${pageView.records}" var="r" varStatus="i">
			<tr>
				<td>
                  <input type="checkbox" />
                </td>
				<td>${r.id}</td>
				<td>${r.sort.name}</td>
				<td>${r.name }</td>
				<td>${r.author }</td>
				<td>${r.price }</td>
				<td>
				<!-- Icons -->
                  <a href="${ctx }/book_edit.do?id=${r.id}" title="Edit">编辑</a>|
				  <a href="${ctx }/book_delete.do?id=${r.id}" title="Delete">删除</a>
				</td>
				</tr>
			</c:forEach>
            </tbody>
          </table>
          
          <!-- page start -->
          <div id="${ctx }/book_page.do" class="page_url"></div>
          <%@ include file="../../share/pager.jsp"%>
          <!-- page end -->
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
    <div class="clear"></div>
  </div>
</div>
</body>
</html>
